-
-
Notifications
You must be signed in to change notification settings - Fork 180
feat(linux): add support on Linux for JDK 25 preview in Docker build configurations #549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Add JDK25 version variable (25+9-ea-beta) to docker-bake.hcl - Update jlink configuration for JDK25 with specific modules - Create separate Windows JDK build matrix excluding JDK25 - Support JDK25 on Alpine and Debian Linux platforms only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, made some suggestions, LGTM otherwise!
FTR, I ran make test
locally (including those suggestions) with success.
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed. | ||
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \ | ||
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed. | |
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \ | |
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \ | |
# JDK 25 switches to a minimal module set for smaller images | |
"25"*) set -- "--compress=zip-6" --add-modules "java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec" ;; \ |
Let's keep in simple for now like what's in the docker-agent which already has JDK25 images.
ARG JLINK_MODULES | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARG JLINK_MODULES |
See above
ARG JLINK_MODULES | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARG JLINK_MODULES |
ditto
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed. | ||
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \ | ||
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# JDK 25 switches to a minimal module set for smaller images. Override with JLINK_MODULES to restore broader compatibility if needed. | |
"25"*) mod_list="${JLINK_MODULES:-java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec}"; \ | |
set -- "--compress=zip-6" --add-modules "$mod_list" ;; \ | |
# JDK 25 switches to a minimal module set for smaller images | |
"25"*) set -- "--compress=zip-6" --add-modules "java.base,java.logging,java.xml,java.management,java.net.http,jdk.crypto.ec" ;; \ |
ditto
} | ||
|
||
variable "JAVA25_VERSION" { | ||
default = "25+9-ea-beta" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default = "25+9-ea-beta" | |
default = "25_36" |
Let's directly use the GA version and skip the EA beta altogether.
Could you rename your PR if you accept this suggestion please?
feat: add JDK25 Linux images
Testing done
make build
Submitter checklist